<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
<style>
  .box-wrapper{
    width: 800px;
    height: 200px;
  }

  .box{
    float: left;
    width: 200px;
    height: 200px;
    line-height: 200px;
    text-align: center;
    color: #fff;
    font-size: 30px;
  }

  .box1{
    background-color: lightblue;
  }

  .box2{
    background-color: lightcoral;
  }

  .box3{
    background-color: lightgoldenrodyellow;
  }

  .box4{
    background-color: lightgreen;
  }
</style>

</head>
<body>

  <div id="app">
    <div class="box-wrapper">
      <div class="box box1" v-if="boxShow1">BOX1</div>
      <div class="box box2" v-show="boxShow2">BOX2</div>
      <div class="box box3" v-if="boxShow3">BOX3</div>
      <div class="box box4" v-show="boxShow4">BOX4</div>
    </div>
    <button @click="showBox1">BOX 1</button>
    <button @click="showBox2">BOX 2</button>
    <button @click="showBox3">BOX 3</button>
    <button @click="showBox4">BOX 4</button>
  </div>
  
</body>
</html>